🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / map / src / commonMain / kotlin / org / meshtastic / feature / map / LocationProviderFactory.kt
Displaying Raw • Download
feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/LocationProviderFactory.kt 4607c3f223b07c78d3b7e58ea46f4bb9d67b04c9 (4607c3f2) Text, 1.24 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.map
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787org.maplibre.compose.location.LocationProvider
T8b949e/**
* Returns a platform-appropriate [LocationProvider], or `null` if the platform doesn't support location.
* - Android: uses the platform `LocationManager` via `rememberDefaultLocationProvider()`.
* - iOS: uses `CLLocationManager` via `rememberDefaultLocationProvider()`.
* - Desktop/JS: returns `null` (no location hardware).
*/
Tf0883e@Composable Tff7b72expect Tff7b72fun Td2a8ffrememberLocationProviderOrNullTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3LocationProvider?
Served by rngit 1.5.2 - Generated in 0.04s